From: Jonas Dreßler Date: Thu, 11 Feb 2021 17:30:10 +0000 (+0100) Subject: screenshot: Replace template strings with .format() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~386 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=461c65c93b2918de081b19528e7c0c95e649739c;p=gnome-shell.git screenshot: Replace template strings with .format() CI will complain when we add screenshot.js to the POTFILES in the next commit because gettext doesn't like template strings, so make CI happy and switch to .format() instead. Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index f10c68f38..1c724f0ba 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -90,11 +90,11 @@ var ScreenshotService = class { return null; yield Gio.File.new_for_path( - GLib.build_filenamev([path, `${filename}.png`])); + GLib.build_filenamev([path, '%s.png'.format(filename)])); for (let idx = 1; ; idx++) { yield Gio.File.new_for_path( - GLib.build_filenamev([path, `${filename}-${idx}.png`])); + GLib.build_filenamev([path, '%s-%s.png'.format(filename, idx)])); } }